<div class="modal fade" id="aclModal" tabindex="-1" role="dialog"
     aria-labelledby="myModalLabel" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"
                        aria-hidden="true">×
                </button>
                <h4 class="modal-title" id="myModalLabel">
                    Acl
                </h4>
            </div>
            <div class="modal-body">
                 <fieldset>
                    <table class="table table-bordered info-table">
                        <tbody>
                         <tr>
                            <th>类别</th>
    						<th>权限Id</th>
    						<th>权限值</th>
    						<th>权限说明</th>
    					 </tr>
    					 
                         <#list acls as acl>
				        <tr>
				            <td>${acl.id.scheme}</td>
				            <td>${acl.id.id}</td>
				            <td>${acl.perms?number}</td>
				            <td>
				           	 <#if (acl.perms?number %2)/ 1 gte 1> 
							    R						
								<#else>						
							    -						
								</#if>
					           
					           	<#if (acl.perms?number %4)/2 gte 1> 
							    W						
								<#else>						
							    -						
								</#if>								
							
								
								<#if (acl.perms?number %8 )/ 4 gte 1> 
							    C						
								<#else>						
							    -						
								</#if>
								
								<#if (acl.perms?number%16  )/ 8 gte 1> 
							    D						
								<#else>						
							    -						
								</#if>
																
								 <#if (acl.perms?number / 16) gte 1> 
							    A						
								<#else>						
							    -						
								</#if>
				            
				             </td>
				            
				        </tr>
				        </#list>
                    </tbody>
                    </table>
                </fieldset>     
            </div>
        </div>
        <!-- /.modal-content -->
    </div>
    <!-- /.modal-dialog -->
</div>
<!-- /.modal -->